package com.everyline.baselibrary.plate.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.everyline.baselibrary.R
import java.util.ArrayList

/**
 *  @author:  hyzhan
 *  @date:    2019/7/22
 *  @desc:    TODO
 */
class ProvinceAdapter(data: ArrayList<String>) :
    BaseQuickAdapter<String, BaseViewHolder>(R.layout.layout_plate_item, data) {

    init {
        addChildClickViewIds()
    }

    override fun convert(holder: BaseViewHolder, item: String) {
        holder?.let {

            it.setText(R.id.mTvWord, item ?: "")
        }
    }
}